package com.label.mapper;

import com.label.entity.Labels;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.label.entity.Patientlabels;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;

import java.io.Serializable;
import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author Jianhua
 * @since 2022-03-27
 */
@Repository
public interface LabelsMapper extends BaseMapper<Labels> {
    @Select("select * from labels where idlabels=#{id} and labelstate=1")
    Labels getlabelbyid(Integer id);
    @Select("select * from labels where labelstate=1")
    List<Labels> findAlllabels();
}
